package com.projectcost.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.projectcost.system.mapper.ProjectManagementMapper;
import com.projectcost.system.domain.ProjectManagement;
import com.projectcost.system.service.IProjectManagementService;
import com.projectcost.common.core.text.Convert;

/**
 * 项目管理Service业务层处理
 * 
 * @author projectcost
 * @date 2024-11-17
 */
@Service
public class ProjectManagementServiceImpl implements IProjectManagementService 
{
    @Autowired
    private ProjectManagementMapper projectManagementMapper;

    /**
     * 查询项目管理
     * 
     * @param id 项目管理主键
     * @return 项目管理
     */
    @Override
    public ProjectManagement selectProjectManagementById(Long id)
    {
        return projectManagementMapper.selectProjectManagementById(id);
    }

    /**
     * 查询项目管理列表
     * 
     * @param projectManagement 项目管理
     * @return 项目管理
     */
    @Override
    public List<ProjectManagement> selectProjectManagementList(ProjectManagement projectManagement)
    {
        return projectManagementMapper.selectProjectManagementList(projectManagement);
    }

    /**
     * 新增项目管理
     * 
     * @param projectManagement 项目管理
     * @return 结果
     */
    @Override
    public int insertProjectManagement(ProjectManagement projectManagement)
    {
        return projectManagementMapper.insertProjectManagement(projectManagement);
    }

    /**
     * 修改项目管理
     * 
     * @param projectManagement 项目管理
     * @return 结果
     */
    @Override
    public int updateProjectManagement(ProjectManagement projectManagement)
    {
        return projectManagementMapper.updateProjectManagement(projectManagement);
    }

    /**
     * 批量删除项目管理
     * 
     * @param ids 需要删除的项目管理主键
     * @return 结果
     */
    @Override
    public int deleteProjectManagementByIds(String ids)
    {
        return projectManagementMapper.deleteProjectManagementByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除项目管理信息
     * 
     * @param id 项目管理主键
     * @return 结果
     */
    @Override
    public int deleteProjectManagementById(Long id)
    {
        return projectManagementMapper.deleteProjectManagementById(id);
    }
}
